<template>
  <div class="luck-draw-end">
    <div class="box" v-if="status==-1">
      <img src="https://img.wifenxiao.com/h5-wfx/images/activity/luck_lose.png" alt="">
      <p>活动已失效</p>
    </div>
    <div class="box" v-if="status==1">
      <img src="https://img.wifenxiao.com/h5-wfx/images/activity/lick_end.png" alt="">
      <p>活动已结束</p>
    </div>
  </div>
</template>

<script>
import Vue from 'vue'
export default Vue.extend({ 
  data() {
    return {
      status: null
    }
  },
  mounted() {
    window.addEventListener('wxload', query => {
        this.status = query.status
    })
  }
})
</script>

<style lang="scss">

.luck-draw-end{
  .box{
    padding-top: 50px;
    img{
      width: 360px;
      margin: 0 auto;
      display: block;
    }
    p{
      font-size: 30px;
      font-weight: 500;
      color: #666666;
      line-height: 42px;
      text-align: center;
    }
  }
}
</style>